object t1 {

  def identifyNumberType(number: String): String = {
    val mobilePattern = "^1[3-9]\\d{9}$".r
    val fixedLinePattern = "^0\\d{2,3}-?\\d{7,8}$".r

    number match {
      case mobilePattern() => "Mobile"
      case fixedLinePattern() => "Fixed Line"
      case _ => "Unknown"
    }
  }


  def main(args: Array[String]): Unit = {
    val testNumber1 = "13912345678"
    val testNumber2 = "020-12345678"
    println(s"$testNumber1 is a ${identifyNumberType(testNumber1)} number.") // Mobile
    println(s"$testNumber2 is a ${identifyNumberType(testNumber2)} number.") // Fixed Line
  }
}
